<notempty name="event_lists">
    <div class="block-bar">
        <div class="container">
            <div class=" block-body row">
                <div class="col-xs-12">
                    <div class="common-block">
                        <header style="margin-bottom: 0;padding-bottom: 0px">{:modC('EVENT_SHOW_TITLE', '最热活动', 'Event')}</header>

                        <div class="common-block-body">
                            <div class="news_list">
                                <volist name="event_lists" id="data">
                                    <div class="col-xs-6" style="position: relative">
                                        <hr style="margin-top: 10px;margin-bottom: 10px"/>
                                        <if condition="$data['cover_id'] neq 0">
                                            <div class="col-xs-4">
                                                <if condition="time() lt $data['eTime']">
                                                    <div class="event_state" style="background: #d61f39;color: #ffffff;position: absolute">
                                                        {:L('_IN_PROGRESS_')}
                                                    </div>
                                                    <else/>
                                                    <div class="event_state" style="background: #000;color: #ffffff;position: absolute">
                                                        {:L('_ALREADY_OVER_')}
                                                    </div>
                                                </if>
                                                <a title="{$data.title|op_t}"
                                                   href="{:U('Event/index/detail',array('id'=>$data['id']))}">

                                                    <img alt="{$data.title|op_t}"
                                                         src="{$data.cover_id|getThumbImageById=153,135}"
                                                         style="width: 153px;height: 135px">
                                                </a>
                                            </div>
                                            <div class="col-xs-8 ">
                                                <div>
                                                    <h3 class="text-more" style="width: 100%;margin-top: 0">
                                                        <a title="{$data.title|op_t}"
                                                           href="{:U('Event/index/detail',array('id'=>$data['id']))}">{$data.title}</a>
                                                    </h3>
                                                </div>
                                                <div>
                                                <span class="author" style="color: #848484"><a href="{$data.user.space_url}"
                                                                                               ucard="{$data.uid}">{$data.user.nickname}</a>&nbsp;&nbsp;时间&nbsp;&nbsp;{:date('Y-m-d',$data['sTime'])}--{:date('Y-m-d',$data['eTime'])}</span><br>
                                                    <span >报名截止时间：{:date('Y-m-d',$data['deadline'])} </span>
                                                    <p style="margin: 0px"><span style="width: 90%;" class="text-more">简介：{:msubstr(preg_replace("/<([a-zA-Z]+)[^>]*>/","\\1",$data['explain']),30);}</span></p>
                                                </div>
                                                <div>

                                                </div>
                                            </div>
                                            <else/>
                                            <div class="col-xs-12">
                                                <div>
                                                    <h3 class="text-more" style="width: 100%">
                                                        <a title="{$data.title|op_t}"
                                                           href="{:U('Event/index/detail',array('id'=>$data['id']))}">{$data.title}</a>
                                                    </h3>
                                                </div>
                                                <div>
                                                <span class="author"><a href="{$data.user.space_url}"
                                                                        ucard="{$data.uid}">{$data.user.nickname}</a>&nbsp;&nbsp;时间&nbsp;&nbsp;{:date('Y-m-d',$data['sTime'])}--{:date('Y-m-d',$data['eTime'])}</span><br>
                                                    <span >报名截止时间：{:date('Y-m-d',$data['deadline'])} </span>
                                                    <p style="margin: 0px"><span style="width: 80%;" class="text-more">简介：{:msubstr(preg_replace("/<([a-zA-Z]+)[^>]*>/","\\1",$data['explain']),30);}</span></p>
                                                </div>
                                                <div>

                                                </div>
                                            </div>
                                        </if>
                                        <span class="pull-right" style="position: absolute;right: 0;bottom: 0">
                                        &nbsp;&nbsp;<span><i class="icon-eye-open"></i>  {$data.view_count} </span>&nbsp;&nbsp;
                                    </span>
                                    </div>
                                </volist>
                                <div class="clearfix"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</notempty>